package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "client_comments")
//@NamedQueries({@NamedQuery(name = "ClientComments.findAll", query = "SELECT cc FROM ClientComments cc"), @NamedQuery(name = "ClientComments.findById", query = "SELECT cc FROM ClientComments cc WHERE cc.cid = :cid")})
public class ClientComments implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "c_id")
    private Integer cid;
    @Column(name = "c_nickname")                   
	private String cnickname;
	@Column(name = "c_email")                  
	private String cemail;
	@Column(name = "c_anonymous")                  
	private Integer canonymous;
	@Column(name = "c_content")                  
	private String ccontent;
	public ClientComments(){
		
	}
	public ClientComments(Integer cid){
		this.cid=cid;
	}
	public Integer getCid() {
		return cid;
	}
	public void setCid(Integer cid) {
		this.cid = cid;
	}
	public String getCnickname() {
		return cnickname;
	}
	public void setCnickname(String cnickname) {
		this.cnickname = cnickname;
	}
	public String getCemail() {
		return cemail;
	}
	public void setCemail(String cemail) {
		this.cemail = cemail;
	}
	public Integer getCanonymous() {
		return canonymous;
	}
	public void setCanonymous(Integer canonymous) {
		this.canonymous = canonymous;
	}
	public String getCcontent() {
		return ccontent;
	}
	public void setCcontent(String ccontent) {
		this.ccontent = ccontent;
	}
	@Override
    public int hashCode() {
        int hash = 0;
        hash += (cid != null ? cid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof ClientComments)) {
            return false;
        }
        ClientComments other = (ClientComments) object;
        if ((this.cid == null && other.cid != null) || (this.cid != null && !this.cid.equals(other.cid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.ClientComments[idcid=" + cid + "]";
    }
	
}
